package com.baseweb.webadmin.core.constants;

import java.util.ArrayList;
import java.util.List;

public enum MoneyType {
    PAY_ORDER(1,"订单支付"), RED_PACKET(2,"红包奖励"), FROZEN_MONEY(3,"冻结金额"), WITHDRAW_MONEY(4,"提现");

    private int code;
    private String name;
    MoneyType(int code, String name){
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static List<MoneyType> getAllData(){
        List<MoneyType> result = new ArrayList<MoneyType>();
        for (MoneyType current : MoneyType.values())
        {
            result.add(current);
        }
        return result;
    }

//    public static void main(String[] args) {
//        for(ChannelType c : getAllChannel()){
//            System.out.print(c.getName());
//        }
//    }
}
